package com.xjtu.chapter07.ex7_3;

import javax.swing.*;
import java.awt.*;

/**
 * @author yjq
 * @version 1.0
 * @date 2021/8/19 10:18
 */
public class GamePanel extends Panel {
    //组件声明
    Menu menu;
    JTextField statusBar;
    JTextArea center;


    Font ffont = new Font("宋体", 1, 24);//设置字体

    public GamePanel() {
        //创建Menu
        menu = new Menu("2");

        //创建StatusBar
        statusBar = new JTextField(20);

        center = new JTextArea();


        //添加组件到面板容器中

        add(center,BorderLayout.CENTER);
        add(statusBar,BorderLayout.SOUTH);
    }
}
